package rachauto.dto;

import java.util.Date;

@SuppressWarnings("serial")
public class CandidatDto  extends PersonneDto {

	private String adresse;
	private String email;
	private Date dateNaissance;
	
	public CandidatDto(){
		
	}
	
	public CandidatDto(int index){
		this("said"+index, "ramli", "cin", "012333333", "said@g.com");
	}
	
	public CandidatDto(String nom, String prenom, String cin, String numTele, String email){
		super(nom, prenom, cin, numTele);
		this.email = email;
		
	}
	
	
	@Override
	public String toString() {
		
		String toString = String.format("[%s,%s,%s,%s,%s,%s]", this.getNom(),
						         this.getPrenom(),
						         this.getAdresse() ,
						         this.getEmail() ,
						         this.getNumTele(),
						         this.getCin()); 
		return "Candidat : "+toString;
	}
	
	/**
	 * @return the adresse
	 */
	public String getAdresse() {
		return adresse;
	}
	/**
	 * @param adresse the adresse to set
	 */
	public void setAdresse(String adresse) {
		this.adresse = adresse;
	}

	/**
	 * @return the email
	 */
	public String getEmail() {
		return email;
	}
	/**
	 * @param email the email to set
	 */
	public void setEmail(String email) {
		this.email = email;
	}
	/**
	 * @return the dateNaissance
	 */
	public Date getDateNaissance() {
		return dateNaissance;
	}
	/**
	 * @param dateNaissance the dateNaissance to set
	 */
	public void setDateNaissance(Date dateNaissance) {
		this.dateNaissance = dateNaissance;
	}
	
}
